﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Lecturers/Lecturers.Master" Inherits="System.Web.Mvc.ViewPage<Dictionary<QualificationLevel, List<CollaborationRoom>>>" %>
<%@ Import Namespace="ViewRes" %>

<asp:Content ID="ScriptsContent" ContentPlaceHolderID="ScriptsContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server" >

<div style="padding: 5px;">
    <%
        foreach (LecturersLoading loading in ((Lecturer) ViewData["LoggedUser"]).LecturersLoadings)
        {%>
      <span class="smallgreentext"><%:loading.QualificationLevel.ToString()%> </span>  - <%:
                ((Lecturer) ViewData["LoggedUser"]).CollaborationRooms.Where(
                    r => r.Student != null && r.Student.StudentsGroup.QualificationLevel == loading.QualificationLevel).
                    Count()%><%:LecturerStrings.Of%><%:loading.StudentsAmount%> 
    <%
        }%>
</div>
<hr />
    <%
        foreach (var level in Model)
        {%>
        <h2><%:level.Key.ToString()%></h2>
    
    <div style="margin: 1em auto; position: relative; text-align: left; width: 763px; z-index: 1;" >
        <ol style="list-style: none outside none;">
            <%
            foreach (CollaborationRoom room in level.Value)
            {%>
                <%
                Html.RenderPartial("~/Views/CollaborationRooms/LecturerViewThemeControl.ascx", room, ViewData);%>
            <%
            }%>
        </ol>
    </div>
    <%
        }%>
</asp:Content>